import Vue from 'vue'
//导入路由模块
import VueRouter from 'vue-router'

Vue.use(VueRouter);

import Home from '../pages/Home/Home.vue'
import Order from '../pages/Order/Order.vue'
import Search from '../pages/Search/Search.vue'
import Personal from '../pages/Personal/Personal.vue'
import Login from '../pages/Login/Login.vue'

var routerObj = new VueRouter(
  {
    routes: [
      {
        path: '/home',
        component: Home,
        meta: {
          showFoot: true
        }
      },
      {
        path: '/order', component: Order,
        meta: {
          showFoot: true
        }
      },
      {
        path: '/search', component: Search,
        meta: {
          showFoot: true
        }
      },
      {
        path: '/personal', component: Personal,
        meta: {
          showFoot: true
        }
      },
      {
        path: '/login', component: Login,
        meta: {
          showFoot: false
        }
      },
      {path: '/', redirect: '/home'},
    ],
    // linkActiveClass: "mui-active"//修改默认的路由高亮
  }
)

export default routerObj
